//
//  LogInManager.h
//  operativeSide-2.0
//
//  Created by 王春程 on 2016/12/14.
//  Copyright © 2016年 王春程. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "CCDHttpBaseTool.h"

typedef void (^isSucess)(BOOL flag);
typedef void (^changeCodeIsSuccess)(BOOL isSuccess);
typedef void (^verifyIsSuccess)(BOOL isSuccess);



typedef NS_ENUM(NSInteger,WORKTYPE) {
  WORKTYPEWORKMAN = 0,
    WORKTYPESTATION,
    WORKTYPECENTER

};


@interface LogInManager : NSObject

@property (assign, nonatomic)               WORKTYPE worktype;

+ (instancetype)sharedManager;

//登录
- (void)logInWithUserName:(NSString *)userName
             withPassWord:(NSString *)passWord
             withIsRember:(BOOL)isRem
                 compelet:(isSucess)isSucessBlock;

//修改密码
- (void)reCodePasswordWithPasswrod:(NSString *)password
                          complete:(changeCodeIsSuccess)isSuccessBlock;

//验证
- (void)verifyWithUsername:(NSString *)username
           withPhoneNumber:(NSString *)phoneNumber
             withWorkplace:(NSString *)workplace
        withWithWorknumber:(NSString *)worknumber
                  complete:(verifyIsSuccess)isSuccess;

@end
